package com.zhouchao.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class TimeUtil {
	public String Time(){
	Timer timer = new Timer();
	 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	/*TimerTask task = new TimerTask()
	{
		public void run()
		{
			System.out.println(df.format(new Date()));
		}
	};
	timer.schedule(task, 1000, 1000);*/
	 
	 return df.format(new Date());
	}	
	
	
}
